<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>其他阶段----工程款支付</title>
</head>
<style>
    .layui-table-cell {
        text-align: center;
        font-size:14px;
        padding:0 5px;
        height:auto;
        overflow:visible;
        text-overflow:inherit;
        white-space:normal;
        word-break: break-all;
    }
    .layui-btns{
        margin-right:3%;
        display:inline-block;
        height:38px;
        line-height:38px;
        padding:0 18px;
        background-color:#fff;
        color: #00a0e9;
        border-color: #00a0e9;
        border-width: 2px;
        white-space:nowrap;
        text-align:center;
        font-size:14px;
        border-radius:5px;
        cursor:pointer
    }
</style>
<body>
<div>

    <div class="DetailsRtTop clearfix" id="lc_img_left">
        <#if "${lcdto.finishStatus}" ==3 >
            <img src="${re.contextPath}/plugin/common/images/14@2x.png" alt="" class="fl">
        <#elseif "${lcdto.finishStatus}" ==2 >
            <img src="${re.contextPath}/plugin/common/images/15@2x.png" alt="" class="fl">
        <#elseif "${lcdto.finishStatus}" ==1 >
            <img src="${re.contextPath}/plugin/common/images/16@2x.png" alt="" class="fl">
        <#elseif "${lcdto.finishStatus}" ==0 >
            <img src="${re.contextPath}/plugin/common/images/17@2x.png" alt="" class="fl">
        </#if>
        <span class="ft18 bold fl ml10">工程款支付</span>
    </div>
    <div class="downModule whitebg">
        <ul class="mb30">
            <li class="clearfix">
                <div class="clearfix" id="div_fb_087">
                    <div class="downModuleTip clearfix fl">
                        <#if "${lcdto.stepNum}"?contains("13")>
                            <img src="${re.contextPath}/plugin/common/images/14@2x.png" alt=""
                                 class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("12")>
                            <img src="${re.contextPath}/plugin/common/images/15@2x.png" alt=""
                                 class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("11")>
                            <img src="${re.contextPath}/plugin/common/images/16@2x.png" alt=""
                                 class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("10")>
                            <img src="${re.contextPath}/plugin/common/images/17@2x.png" alt=""
                                 class="fl">
                        </#if>
                        <span class="fl ml10 mt10 milefile" data-filetype="087">承建付款申请</span>
                    </div>
                    <div class="downModuleBtn clearfix fr">
                        <@shiro.hasPermission name="file:finish">
                                <button class="fl bluebg white fl ml20 btn_finish" lay-fs="12"   onclick="_prom_page.events.finish(this)">完成</button>
                        </@shiro.hasPermission>
                    </div>
                </div>
                <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"
                     style=" padding-left: 0px; padding-right: 0px;">
                    <ul class="layui-tab-title">
                        <#list listsqs_fb as vo>
                            <#if  "${u_index}"==0 >
                                <li class="layui-this" value="${vo.id}" lay-index="${vo_index}">分包编号：${vo.code}</li>
                            <#else>
                                <li value="${vo.id}" lay-index="${vo_index}">分包编号：${vo.code}</li>
                            </#if>
                        </#list>
                    </ul>
                    <div class="layui-tab-content" style="padding: 0px;">
                        <#list listsqs_fb as vo>
                            <div class="layui-tab-item">
                                <div class="clearfix" style="background: #F8F9FD">
                                    <div class="downModuleBtn clearfix fr" style="margin-right: 80px">
                                        <@shiro.hasPermission name ="file:uploadCj">
                                            <label>
                                                <img src="${re.contextPath}/plugin/common/images/18@2x.png" alt=""
                                                     class="fl "
                                                     lay-data="{type: '087',value:'11',lx:'1'}">
                                                <button type="button" style="display: none;"
                                                        lay-data="{type: '087',value:'11',lx:'1'}"
                                                        bt-data="['c','d','sc_image','qr_uplaod','pl_delete','g']"
                                                        class="img-upload whitebutton ft12 blue">点击上传
                                                </button>
                                            </label>
                                            <img src="${re.contextPath}/plugin/common/images/19@2x.png" alt="" class="fl"
                                                 onclick="_prom_page.events.clickDelete(this)">
                                        </@shiro.hasPermission>
                                        <@shiro.lacksPermission name="file:uploadCj">
                                            <label style="display: none">
                                                <img src="${re.contextPath}/plugin/common/images/18@2x.png" alt=""
                                                     class="fl "
                                                     lay-data="{type: '087',value:'11',lx:'1'}">
                                                <button type="button" style="display: none;"
                                                        lay-data="{type: '087',value:'11',lx:'1'}"
                                                        bt-data="['c','d','sc_image','qr_uplaod','pl_delete','g']"
                                                        class="img-upload whitebutton ft12 blue">点击上传
                                                </button>
                                            </label>
                                        </@shiro.lacksPermission>

                                    </div>
                                </div>
                                <ul id="jl_lxbox" class="clearfix" style="border: 1px solid #EEEEEE;">
                                </ul>
                            </div>
                        </#list>
                    </div>
                </div>
            </li>
            <li class="clearfix">
                <div class="clearfix">
                    <div class="downModuleTip clearfix fl">
                        <#if "${lcdto.stepNum}"?contains("23")>
                            <img src="${re.contextPath}/plugin/common/images/14@2x.png" alt="" class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("22")>
                            <img src="${re.contextPath}/plugin/common/images/15@2x.png" alt="" class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("21")>
                            <img src="${re.contextPath}/plugin/common/images/16@2x.png" alt="" class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("20")>
                            <img src="${re.contextPath}/plugin/common/images/17@2x.png" alt="" class="fl">
                        </#if>
                        <span class="fl ml10 mt10 milefile" data-filetype="088">监理付款申请（可选）</span>
                    </div>
                    <div class="downModuleBtn clearfix fr">
                        <@shiro.hasPermission name ="file:upload">
                            <label>
                                <img src="${re.contextPath}/plugin/common/images/18@2x.png" alt="" class="fl ">
                                <button type="button" style="display: none;" lay-data="{type: '088',value:'21'}"     bt-data="['c','d','sh','jf2','g','sc_image','qr_uplaod','pl_delete']"
                                        class="img-upload whitebutton ft12 blue">点击上传
                                </button>
                            </label>
                            <img src="${re.contextPath}/plugin/common/images/19@2x.png" alt="" class="fl"
                                 onclick="_prom_page.events.clickDelete(this)">
                        </@shiro.hasPermission>
                        <@shiro.lacksPermission name="file:upload">
                            <label style="display: none">
                                <img src="${re.contextPath}/plugin/common/images/18@2x.png" alt="" class="fl ">
                                <button type="button" style="display: none;" lay-data="{type: '088',value:'21'}"     bt-data="['c','d','sh','jf2','g','sc_image','qr_uplaod','pl_delete']"
                                        class="img-upload whitebutton ft12 blue">点击上传
                                </button>
                            </label>
                        </@shiro.lacksPermission>
                        <@shiro.hasPermission name="file:finish">
                            <#if "${finish_status_088}"==true>
                                <button class="fl bluebg white fl ml20 btn_finish" lay-fs="22"   onclick="_prom_page.events.finish(this)">完成</button>
                            <#else>
                                <button class="fl bluebg white fl ml20 btn_finish layui-btn-disabled" lay-fs="22"  disabled="false"  onclick="_prom_page.events.finish(this)">完成</button>
                            </#if>
                        </@shiro.hasPermission>
                    </div>
                </div>
                <ul class="clearfix">
                    <#list listwdbg_file as vo>
                        <li class="clearfix">
                            <div class="clearfix">
                                <input type="checkbox" class="fl" value="${vo.id}" title="jlzb">
                                <span class="fl ml10">${vo.fileName}</span>
                                <@shiro.hasPermission name ="file:upload">
                                    <button type="button" style="display: none;"
                                            class="fr ml20 mt15 bgnone qr_uplaod  imageActionUploadImageZf"
                                            onclick="_prom_page.events.comfirmScImage(this)">确认上传
                                    </button>
                                    <button type="button" style="display: none;" class="fr ml20 mt15 bgnone pl_delete"
                                            onclick="_prom_page.events.plDeleteImage(this)">批量删除
                                    </button>
                                    <label>
                                        <button type="button" class="fr ml20 mt15 bgnone tabUploadImageZf"  lay-data="{'type':'002','num':11}" >上传图片
                                        </button>
                                    </label>
                                </@shiro.hasPermission>
                                <@shiro.lacksPermission name="file:upload">
                                    <label style="display: none">
                                        <button type="button" class="fr ml20 mt15 bgnone tabUploadImageZf"  lay-data="{'type':'002','num':11}" >上传图片
                                        </button>
                                    </label>
                                </@shiro.lacksPermission>
                                <#if "2,4,6"?contains("${vo.lcStatus}")  &&  "${vo.lcStatus}"!=null>
                                    <@shiro.hasPermission name="file:usecstamp">
                                        <button type="button" class="fr ml20 mt15 bgnone btn_jflq">监发两签</button>
                                    </@shiro.hasPermission>
                                <#--        <@shiro.hasPermission name="file:upseal">
                                            <button type="button" class="fr mt15 bgnone ml20 upseal tabsealup0">上传签章</button>
                                        </@shiro.hasPermission>-->
                                </#if>
                                <@shiro.hasPermission name="file:stamp">
                                    <button type="button" class="fr ml20 mt15 bgnone  btn_gz">盖章</button>
                                </@shiro.hasPermission>
                                <#if "0,1,3"?contains("${vo.lcStatus}")  || "${vo.lcStatus}"==null>
                                    <@shiro.hasPermission name="file:check">
                                        <button type="button" class="fr mt15 bgnone ml20 btn_jlnbsh">审核</button>
                                    </@shiro.hasPermission>
                                </#if>
                                <@shiro.hasPermission name="file:export">
                                    <button type="button" class="fr ml20 mt15 bgnone"
                                            onclick="_prom_page.events.exportFile(this)">导出
                                    </button>
                                </@shiro.hasPermission>
                                <@shiro.hasPermission name="file:view">
                                    <button type="button" class="fr mt15 bgnone ml20 btn_vew">查看</button>
                                </@shiro.hasPermission>
                            </div>
                            <div  style="position:relative;float: left; border: 1px solid #EEEEEE;height: 300px;width: 100%; overflow-y: scroll;display: none">
                                <div  style="clear: both;"></div><div class="layui-upload-list yldemo"></div>
                                <div  style="clear: both;"></div></div>
                            <div  style="border: 1px solid rgb(238, 238, 238); float:left;display: inline-block;width: 98%;">
                                <table id="table${vo.id}" style="height: 300px;" class="layui-hide" lay-filter="table${vo.id}'"></table>
                            </div>
                            <div style="clear:both;"></div>
                        </li>
                    </#list>
                </ul>
            </li>
            <li class="clearfix">
                <div class="clearfix">
                    <div class="downModuleTip clearfix fl">
                        <#if "${lcdto.stepNum}"?contains("33")>
                            <img src="${re.contextPath}/plugin/common/images/14@2x.png" alt="" class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("32")>
                            <img src="${re.contextPath}/plugin/common/images/15@2x.png" alt="" class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("31")>
                            <img src="${re.contextPath}/plugin/common/images/16@2x.png" alt="" class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("30")>
                            <img src="${re.contextPath}/plugin/common/images/17@2x.png" alt="" class="fl">
                        </#if>
                        <span class="fl ml10 mt10 milefile" data-filetype="089">支付意见（可选）</span>
                    </div>
                    <div class="downModuleBtn clearfix fr">
                        <@shiro.hasPermission name ="file:upload">
                            <label>
                                <img  src="${re.contextPath}/plugin/common/images/18@2x.png" alt="" class="fl ">
                                <button type="button" style="display: none;" lay-data="{type: '089',value:'31'}"   bt-data="['c','d','sh','jf2','g']" class="img-upload whitebutton ft12 blue">点击上传</button>
                            </label>
                            <img src="${re.contextPath}/plugin/common/images/57@2x.png" alt="" class="fl " onclick="_prom_page.events.addForm(this)">
                            <img src="${re.contextPath}/plugin/common/images/19@2x.png" alt="" class="fl" onclick="_prom_page.events.clickDelete(this)">
                        </@shiro.hasPermission>
                        <@shiro.lacksPermission name="file:upload">
                            <label style="display: none">
                                <img style="display: none;" src="${re.contextPath}/plugin/common/images/18@2x.png" alt="" class="fl ">
                                <button type="button" style="display: none;" lay-data="{type: '089',value:'31'}"   bt-data="['c','d','sh','jf2','g']" class="img-upload whitebutton ft12 blue">点击上传</button>
                            </label>
                        </@shiro.lacksPermission>
                        <@shiro.hasPermission name="file:finish">
                            <#if "${finish_status_089}"==true>
                                <button class="fl bluebg white fl ml20 btn_finish" lay-fs="32"   onclick="_prom_page.events.finish(this)">完成</button>
                            <#else>
                                <button class="fl bluebg white fl ml20 btn_finish layui-btn-disabled" lay-fs="32"  disabled="false"  onclick="_prom_page.events.finish(this)">完成</button>
                            </#if>
                        </@shiro.hasPermission>
                    </div>
                </div>
                <ul class="clearfix">
                    <#list listwdzf_file as vo>
                        <li class="clearfix">
                            <input type="checkbox" class="fl" value="${vo.id}" title="jlzb">
                            <span class="fl ml10">${vo.fileName}</span>
                            <#if "2,4,6"?contains("${vo.lcStatus}")  &&  "${vo.lcStatus}"!=null>
                                <@shiro.hasPermission name="file:usecstamp">
                                    <button type="button" class="fr ml20 mt15 bgnone btn_jflq">监发两签</button>
                                </@shiro.hasPermission>
                            <#--          <@shiro.hasPermission name="file:upseal">
                                          <button type="button" class="fr mt15 bgnone ml20 upseal tabsealup0">上传签章</button>
                                      </@shiro.hasPermission>-->
                            </#if>
                            <@shiro.hasPermission name="file:stamp">
                                <button type="button" class="fr ml20 mt15 bgnone btn_gz">盖章</button>
                            </@shiro.hasPermission>
                            <#if "0,1,3"?contains("${vo.lcStatus}")  || "${vo.lcStatus}"==null>
                                <@shiro.hasPermission name="file:check">
                                    <button type="button" class="fr mt15 bgnone ml20 btn_jlnbsh">审核</button>
                                </@shiro.hasPermission>
                            </#if>
                            <@shiro.hasPermission name="file:export">
                                <button type="button" class="fr ml20 mt15 bgnone" onclick="_prom_page.events.exportFile(this)">导出</button>
                            </@shiro.hasPermission>
                            <@shiro.hasPermission name="file:view">
                                <button type="button" class="fr mt15 bgnone ml20 btn_vew">查看</button>
                            </@shiro.hasPermission>
                        </li>
                    </#list>
                </ul>
            </li>
            <li>
                <input class="layui-btns fr ml10" type="button"  value="监理费付款" onclick="openPay()">
                <div class="clearfix">
                    <div class="downModuleTip clearfix fl">
                        <span class="fl ml10 mt10 milefile" data-filetype="032">回款到账情况</span>
                    </div>

                </div>
                <ul id="jl_lxbox2" class="clearfix">
                    <table class="layui-hide" style="clear:both;" id="huikuan" lay-filter="huikuan"></table>
                </ul>
            </li>
        </ul>
    </div>
    <form class="layui-form" id="test" style="display:none; margin-top: 22px;" >
        <input type = "hidden" id = "payId1">
        <div class="layui-form-item" style="top: 20px">
            <div style="width: 50%;float: left">
                <label class="layui-form-label">序号(支付次数)</label>
                <div class="layui-input-inline">
                    <input type="text" name="sppNo1" id = "sppNo1" required readonly="true" style="background-color: #DCDDDC";lay-verify="required" autocomplete="on" class="layui-input">
                </div>
            </div>
            <div style="width: 50%;float: left">
                <label class="layui-form-label">支付时间/支付节点</label>
                <div class="layui-input-inline">
                    <input type="text" name="sppNode1" id = "sppNode1" required readonly="true"style="background-color: #DCDDDC"; lay-verify="required" autocomplete="on" class="layui-input">
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div style="width: 50%;float: left">
                <label class="layui-form-label">支付比例</label>
                <div class="layui-input-inline">
                    <input type="text" name="sppPersent1" id = "sppPersent1"  readonly="true"style="background-color: #DCDDDC"; required lay-verify="required" autocomplete="on" class="layui-input">
                </div>
            </div>
            <div style="width: 50%;float: left">
                <label class="layui-form-label">支付金额</label>
                <div class="layui-input-inline" style="width: 45%;">
                    <input type="text" name="zfMomney1" id = "zfMomney1" required  readonly="true"style="background-color: #DCDDDC;width: 80%"; autocomplete="on" class="layui-input fl"><span class="fl">元</span>
                </div>
            </div>
        </div>

        <div class="layui-form-item" style="margin-top:33px">
            <div style="width: 50%;float: left">
                <label class="layui-form-label">发票金额</label>
                <div class="layui-input-inline" style="width: 45%;">
                    <input type="text" name="fpMoney1" id = "fpMoney1" required  readonly="true"lay-verify="required"style="background-color: #DCDDDC;width: 80%"; autocomplete="on" class="layui-input fl"><span class="fl">元</span>
                </div>
            </div>
            <div style="width: 50%;float: left">
                <label class="layui-form-label">申请支付时间</label>
                <div class="layui-input-inline">
                    <input type="text" name="createDate1" id = "createDate1" required  readonly="true"style="background-color: #DCDDDC"; lay-verify="required" autocomplete="on" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div style="float: left;width: 50%">
                <label class="layui-form-label">到账占比</label>
                <div class="layui-input-inline">
                    <input type="text" name="isArrival"AutoComplete="off" readonly="true"  style="background-color:#DCDDDC; " id = "isArrival" required  lay-verify="required" autocomplete="on" class="layui-input">
                </div>
            </div>
        </div>
        <div id="jeDiv" style="float: left;width: 100%;margin-top: 20px;">
            <div class="layui-form-item">
                <div style="float: left;width: 100%">
                    <div style="width: 50%;float: left">
                        <label class="layui-form-label" style="width: 15%;float: left">到账时间</label>
                        <div class="layui-input-block" style="width: 47%;">
                            <input name="arrivalDate1" class="fl gq" op="0" zgq="start" type="datetime" style="width: 74%;height: 36px"
                                   id="arrivalDate1"
                                   AutoComplete="off" placeholder="请选择时间"/>
                        </div>
                    </div>
                    <div style="width: 50%;float: left">
                        <label class="layui-form-label" style="width: 20%;float: left">到账金额</label>
                        <div class="layui-input-inline" style="width: 47%;float: left">
                            <input type="text" name="arrivalMoney1"
                                   AutoComplete="off" placeholder="请填写到账金额" id = "arrivalMoney1"
                                   required  lay-verify="required" autocomplete="on" class="layui-input fl"style="width: 80%"><span class="fl">元</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <H3>监理费付款信息</H3>
        <div class="layui-form-item">
            <div style="margin-top: 20px;">
                <label class="layui-form-label">付款方式</label>
                <div class="layui-input-inline">
                    <input type="text" name="sppNode2" id = "sppNode2"   style="background-color: #DCDDDC;" required readonly="true" class="layui-input" disabled="disabled">
                </div>
            </div>
        </div>
        <div id = "payLists" style="margin-top: 20px;width: 100%;float: left">

        </div>
    </form>
    <form class="layui-form" id="testPay" style="display:none; margin-top: 22px;" >
        <ul class="clearfix">
            <li class="clearfix" style="margin-left: 31%">
                <div class="layui-col-md3 w80p" style="height: 36px;">
                    <select  id="zfcs"
                             style="width: 63% !important;display: block;height: 38px"  lay-ignore    >
                        <option value="">请选择支付次数</option>
                        <#list listpay as vo>
                            <option value="${vo.sppId}">${vo.sppNo}</option>
                        </#list>
                    </select>
                </div>
            </li>
            <li class="clearfix" style="margin-left: 31%;margin-top: 3%">
                <input type="text" name="jlPayMoney" style="width: 50%;height: 38px"  id="jlPayMoney" placeholder="请输入支付金额">元
            </li>
            <li class="clearfix" style="margin-left: 31%;margin-top: 3%">
                <input type="text" name="jlInvoiceMoney"  style="width: 50%;height: 38px"  id="jlInvoiceMoney" lay-verify="jlInvoiceMoney"
                       placeholder="请输入发票金额">元
            </li>

        </ul>
    </form>
</div>
<script type="text/javascript" src="${re.contextPath}/plugin/system/supervisor/projectManager.js"></script>
<script type="text/javascript" src="${re.contextPath}/plugin/system/supervisor/guide.js"></script>
<script>
    $(function () {
        var jsondata = {
            "id": '${pdto.id}',
            "spmId": '${pdto.spmId}',
            "stageId": '${stagedto.id}'
        }
        _prom_page._init(3, jsondata);
        var haveGuide = '${haveGuide}';guide._initMileFileGuide($(".milefile"));
        if (haveGuide) {
            var badtNo = '${badtNo}';
            guide._initBtn(haveGuide, badtNo);
        }
        // layui-tab-title 自动触发点击事件
        for (var i = 0; i < 1; i++) {
            $('.layui-tab-title:eq(' + i + ') li:eq(0)').click();
        }
        _prom_page.events.butKzInit();
    });


</script>
</body>

</html>
